package connector

import (
	apiv1 "gitee.com/YunFeiGuoJi/golearning/api/v1"
)

type Connection interface {
	Exec(cmd string, host *apiv1.HostCfg) (stdout string, err error)
	Scp(src, dst string) error
	Close()
}

type Connector interface {
	Connect(host apiv1.HostCfg) (Connection, error)
}